package com.yeyks.common.appcommon.param.account;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import java.io.Serializable;

/**
 * @author Administrator
 */
@ApiModel(description = "修改密码输入参数")
@Data
public class UpdatePwdParam implements Serializable {
    private static final long serialVersionUID = 5978306220292951402L;

    @ApiModelProperty("token的有效令牌")
    @NotBlank(message = "token不能为空")
    private String token;

    @ApiModelProperty(value = "版本号")
    private String version;

    @ApiModelProperty(value = "平台")
    private String platform;

    @ApiModelProperty("旧密码")
    @NotBlank(message = "旧密码不能为空(md5加密)")
    private String oldPwd;

    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码不能为空(md5加密)")
    private String newPwd;

    @ApiModelProperty("确认密码(md5加密)")
    private String confirmPwd;
}
